import request from '@/utils/request'

// 条件查询归档审批
export function queryConditionArchive(data){
    return request({
        url: "/archiveApprove/query/condition",
        method: "post",
        data: data
    })
}

// 归档审批查看或者退回
export function ChangeStatus(data){
    return request({
        url: "/archiveApprove/update/archiveApprove",
        method: "post",
        data: data
    })
}

// 获得项目全部信息
export function getProjectInfo(data){
    return request({
        url:"/archiveApprove/get/projectInfo/" + data,
        method: "get"
    })
}

// 改变审批状态
export function changeArchiveApproveState(data){
    return request({
        url: "/archiveApprove/update/archiveApprove",
        method: "post",
        data: data
    })
}

// 登录的时候提醒有项目没有审批
export function projectIsApprove(){
    return request({
        url: "/archiveApprove/query/is/approve",
        method: "get"
    })
}
